翻訳と辞書
Words near each other
・ Virtual camera system
・ Virtual campus
・ Virtual Case File
・ Virtual CD-ROM Control Panel
・ Virtual CD-ROM switching utility
・ Virtual Cell
・ Virtual Centre of Excellence
・ Virtual CFO
・ Virtual channel
・ Virtual character
・ Virtual chargeback
・ Virtual Chess 64
・ Virtual cinematography
・ Virtual circuit
・ Virtual circuit multiplexing
Virtual class
・ Virtual Cluster Switching
・ Virtual cocoon
・ Virtual collaboration
・ Virtual Collaborative Learning
・ Virtual Collection of Masterpieces
・ Virtual collective consciousness
・ Virtual College of Biotechnology, University of Saskatchewan
・ Virtual colonoscopy
・ Virtual colony count
・ Virtual column
・ Virtual Combat Convoy Trainer
・ Virtual community
・ Virtual community of practice
・ Virtual Computer


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Virtual class : ウィキペディア英語版
Virtual class

In object-oriented programming, a virtual class is a nested inner class whose functions and member variables can be overridden and redefined by subclasses of the outer class. Virtual classes are analogous to virtual functions.
The run time type of a virtual class depends on the run time type of an object of the outer class. (Just like the run time type of an object decides which virtual function should be used.)
A run time instance type of the outer class object not only decides on the polymorphic type of its own type object, but also on a whole family tree of virtual class members.
== Purpose ==
Virtual classes solve the extensibility problem of extending data abstraction with new functions and representations. Like virtual functions, virtual classes follow the same rules of definition, overriding, and reference.
When a derived class inherits from a base class, it must define or override the virtual inner classes it inherited from the base class. An object of the child class may be referred to by a reference or pointer of the parent class type or the child class type. When the reference or pointer invoke the virtual inner classes, the derived class's implementation will be called if the object is of the derived class type. The type of the outer class determines the run time of the inner virtual class.
A method with an object argument has access to the object's virtual classes. The method can use the virtual classes of its arguments to create instances and declare variables. Virtual classes of different instances are not compatible.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Virtual class」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.